package com.jdd.modules.parkmonthly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jdd.modules.parkmonthly.entity.MonthlyCardInfo;
import com.jdd.modules.parkmonthly.entity.dto.DownloadMonthlyTempReq;
import com.jdd.modules.parkmonthly.entity.vo.ImportExcelErrorInfoVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: 月卡信息表
 * @Author: jdd
 * @Date: 2021-11-09
 * @Version: V1.0
 */
public interface IMonthlyCardInfoImportExtService extends IService<MonthlyCardInfo> {

    /**
     * 验证导入月租数据
     *
     * @param req
     * @param request
     * @return
     * @throws Exception
     */
    List<ImportExcelErrorInfoVo> verifyImportFile(DownloadMonthlyTempReq req, HttpServletRequest request) throws Exception;

    /**
     * 导入月租车Excel文件
     *
     * @param req
     * @param request
     * @return
     * @throws Exception
     */
    boolean importMonthlyExcel(DownloadMonthlyTempReq req, HttpServletRequest request) throws Exception;

}
